#!/bin/bash 
awk -F',' 'BEGIN{print "time_sum(s),count"}{if(NR!=1) arr[$4+$5]++}END{if(NR!=1) for(i in arr){print i,arr[i]|"sort -k1"}}' c.txt
